home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
VDIMACRO.S
< prev
next >
Wrap
Text File
|
1993-03-16
|
2KB
|
65 lines
;*========================================================================
;*
;* VDIFAST Public Domain VDI bindings.
;*
;*========================================================================
.extern vdicall ; Let everyone see these internal
.extern vout_pxy ; service routines...
.extern vstr_stack
;*************************************************************************
;*
;* VContrl macro.
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
clr.l -(sp) ; contrl[3,2]
clr.w -(sp) ; contrl[1]
move.w macro.,-(sp) ; contrl[0]
;* Setup the 'contrl' parm block.
;* 'opcode' is mandatory.
;* Subfunction and intin/ptsin counts are optional, and will be zeroed
;* if they are not specified.
;*
;*************************************************************************
;acro VContrl opc,sub,pti,ini,hnd
move.w hnd,-(sp) ; contrl[6]
move.w sub,-(sp) ; contrl[5]
subq.l #2,sp ; contrl[4]
move.w ini,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
move.w pti,-(sp) ; contrl[1]
move.w opc,-(sp) ; contrl[0]
.if \?hnd
move.w \hnd,-(sp)
.else
move.w .handle(a6),-(sp)
.endif
.if \?sub
move.w \sub,-(sp)
subq.w #2,sp
.else
clr.l -(sp)
.endif
.if \?ini
move.w \ini,-(sp)
subq.w #2,sp
.else
clr.l -(sp)
.endif
.if \?pti
move.w \pti,-(sp)
.else
clr.w -(sp)
.endif
move.w \opc,-(sp)
endm